class Service::CompanyController < Service::ServiceController

  def create
    name = params[:name]
    password = params[:password]
    twitter_user_id = params[:twitter_user_id]

    Company.create(name, password, twitter_user_id)

    render :json => {:message => 'company created.'}
  end

  def add_user
    name = params[:name]
    password = params[:password]
    twitter_user_id = params[:twitter_user_id]

    Company.add_user(name, password, twitter_user_id)

    render :json => {:message => 'user added'}
  end

end
